import axios from '@/axios'

export function getCorrosive(params) {
  return axios({
    url: '/api/corrosiveObject/pageList',
    method: 'get',
    params
  })
}
export function getDictData(params) {
  return axios({
    url: '/api/corrosiveObject/queryFirmWorkshopDeviceList',
    method: 'get',
    params
  })
}
//批量确认
export function batchConfir(idList) {
  return axios({
    url: `/api/corrosiveObject/batchConfirm/${idList}`,
    method: 'put'
  })
}
//确认机理子表的数据
export function subTableTable(params) {
  return axios({
    url: '/api/corrosiveObject/queryItemMechanismList',
    method: 'get',
    params
  })
}
//确认机理
export function mechanism(data) {
  return axios({
    url: '/api/corrosiveObject/confirmMechanism',
    method: 'put',
    data
  })
}
